package com.yc.supermarket.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/*进货入库实体类*/
public class PurchaseInventory implements Serializable {
    private Integer purchaseId;
    private Integer commodityId;
    private String commodityName;
    private Integer purchaseQuantity;
    private double unitPrice;
    private double totalPrice;
    private String purchaseDate;
    private Integer purchaseStatus;

    public Integer getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public Integer getPurchaseQuantity() {
        return purchaseQuantity;
    }

    public void setPurchaseQuantity(Integer purchaseQuantity) {
        this.purchaseQuantity = purchaseQuantity;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public Integer getPurchaseStatus() {
        return purchaseStatus;
    }

    public void setPurchaseStatus(Integer purchaseStatus) {
        this.purchaseStatus = purchaseStatus;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public PurchaseInventory(Integer purchaseId, Integer commodityId, String commodityName, Integer purchaseQuantity, double unitPrice, double totalPrice, String purchaseDate, Integer purchaseStatus) {
        this.purchaseId = purchaseId;
        this.commodityId = commodityId;
        this.commodityName = commodityName;
        this.purchaseQuantity = purchaseQuantity;
        this.unitPrice = unitPrice;
        this.totalPrice = totalPrice;
        this.purchaseDate = purchaseDate;
        this.purchaseStatus = purchaseStatus;
    }

    public PurchaseInventory() {
    }

    @Override
    public String toString() {
        return "PurchaseInventory{" +
                "purchaseId=" + purchaseId +
                ", commodityId=" + commodityId +
                ", commodityName='" + commodityName + '\'' +
                ", purchaseQuantity=" + purchaseQuantity +
                ", unitPrice=" + unitPrice +
                ", totalPrice=" + totalPrice +
                ", purchaseDate='" + purchaseDate + '\'' +
                ", purchaseStatus=" + purchaseStatus +
                '}';
    }
}
